#!/usr/bin/env python3
# 构造器演示

class Critter(object):

    """Docstring for Critter. """

    # 初始化函数
    def __init__(self):
        """TODO: to be defined. """
        print('A new critter has been born')

    def talk(self):
        """TODO: Docstring for talk.

        :f: TODO
        :returns: TODO

        """
        print('\nHi. I\'m an instance of class Critter')

    # 打印类
    def __str__(self):
        """TODO: Docstring for __str__.

        :f: TODO
        :returns: TODO

        """
        rep = 'Critter object\n'
        return rep

crit1 = Critter()
crit2 = Critter()

print(crit2)
